package org.dromara.bean.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.dromara.bean.domain.HisGoodsOrder;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 商城订单业务对象 his_goods_order
 *
 * @author Lion Li
 * @date 2024-12-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HisGoodsOrder.class, reverseConvertGenerate = false)
public class HisGoodsOrderBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long memberId;

    /**
     * 会员名称
     */
    private String memberName;


    /**
     * 地址id
     */
    @NotNull(message = "地址id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long addressId;

    /**
     * 单号
     */
    private String logisticsNo;


    /**
     * 快递公司
     */
    private Long logisticsCompanyId;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 订单状态
     */
    private String status;


    /**
     * 数量
     */
//    @NotNull(message = "数量不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer count;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    @TableField(exist = false)
    private Long carId;

    //自提
//    @TableField(exist = false)
    private int zt;

}
